<?php 
include_once 'include/sesion.php';
include_once 'include/conexion.php';

global $id_usuario;
$id_usuario=$_COOKIE["SDSPortalsesionID"];
$id_modulo = isset($_GET["m"]) ? $_GET["m"] : 0;
$id_pantalla = isset($_GET["p"]) ? $_GET["p"] : 0;
$objeto = isset($_GET["o"]) ? $_GET["o"] : 0;
//$estado = isset($_POST["estado"]) ? $_POST["estado"] : 0;
$estado = isset($_REQUEST["estado"]) ? $_REQUEST["estado"] : 0;
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html" />
<meta name="author" content="SDS" />
<meta name="Robots" content="index,follow" />
<meta name="Description"
	content="Control de ordenes de servicio e informes" />
<meta name="Keywords" content="SDS" />
<title>SDS Portal - <?php echo $titulo; ?></title>
<link rel="Shortcut Icon" href="images/logonano.png" />
<link rel="stylesheet" type="text/css" href="images/style.css" />
<script type="text/javascript" src="include/JS/mootools-1.2.4-core-nc.js"></script>
<script type="text/javascript" src="include/JS/mootools-1.2.4.2-more.js"></script>
<script type="text/javascript" src="include/JS/utilerias.js"></script>
<script type="text/javascript" src="include/JS/tinytable.js"></script>
<style type="text/css">
       BODY { background: #DDD; }
</style>
</head>
<body onunload="window.opener.location.reload(true);">
<?php
include("$_REQUEST[d].php");

cerrar_coneccion($link);
?>
<script language="javascript" type="text/javascript">
function pasar_foco(){
var mifoco = document.getElementById("foco"); 
if(mifoco!=null)
	mifoco.focus(); 
else
	mifoco = document.getElementById("query");
if(mifoco!=null)
	mifoco.focus(); 
}
pasar_foco();
var textoadesaparecer = document.getElementById("desaparece");
if(textoadesaparecer!=null)
	setTimeout("textoadesaparecer.innerHTML = '';",5000);
</script>
</body>
</html>